

import { createApp } from 'vue'
import App from './App.vue'
import 'amis/sdk/sdk.js';
import 'amis/lib/themes/default.css';
import amis from "./components/amisT.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import './main.css'
import { createRouter, createWebHashHistory } from 'vue-router';
 
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
      { path: '/', component: () => import('./pages/village.vue') },     
      { path: '/village', component: () => import('./pages/village.vue') },     

      
      { path: '/login', component: () => import('./pages/login.vue') },  
      { path: '/permission', component: () => import('./pages/permission.vue') },  
      { path: '/role', component: () => import('./pages/role.vue') },  
      { path: '/system', component: () => import('./pages/system.vue') },  
      { path: '/user', name:"user", component: () => import('./pages/user.vue') },

    ],
  });
createApp(App).component('amis',amis).use(ElementPlus).use(router).mount('#app')

